home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_c / cgraphix / invertsc.c < prev    next >
Text File  |  1986-04-30  |  344b  |  18 lines

  1. /* «RM120»«PL99999»«TS4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76» */
  2. #include    <stdio.h>
  3. #define    EXTERN    extern
  4. #include    <typedef.h>
  5.  
  6.  
  7. void InvertScreen()
  8. {
  9.     int        i, j, k;
  10.  
  11.     for (i = 0; i < 200; i++) {
  12.         k = BaseAddress(i);
  13.         for (j = 0; j < 80; j += 2)
  14.             pokew(k + j, GrafBase, (NOT peek(k + j, GrafBase)));
  15.     }
  16. }
  17.  
  18.